package com.adingxiong.quickstart.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统日志
 * </p>
 *
 * @author xiongc
 * @since 2020-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysLog对象", description="系统日志")
public class SysLog implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "记录时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "登录ip地址")
    private String ipAddress;

    @ApiModelProperty(value = "类型 1. 附件下载 2. 网站浏览")
    private Integer type;

    @ApiModelProperty(value = "记录人")
    private String creator;

    @ApiModelProperty(value = "累计访问次数")
    private Integer viewcCount;

    @ApiModelProperty(value = "累计下载次数")
    private Integer uploadCount;

    @ApiModelProperty(value = "客户端版本")
    private String clientVersion;

}
